#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    int singleNumber(vector<int>& nums)
    {
        int ret = 0;
        for (auto& a : nums)
        {
            ret ^= a;
        }
        return ret;
    }
};